B2BSessions
The B2BSessions interface provides methods for authenticating, updating, or revoking sessions, and properties to retrieve the existing session token (opaque or JWT).
Types
Link copied to clipboard
Data class used for wrapping parameters used with Sessions authentication
Link copied to clipboard
Data class used for wrapping parameters used with Sessions revocation
Functions
Link copied to clipboard
abstract suspend fun authenticate(authParams: B2BSessions.AuthParams): AuthResponse
Content copied to clipboard
abstract fun authenticate(authParams: B2BSessions.AuthParams, callback: (AuthResponse) -> Unit)
Content copied to clipboard
Authenticates a Session and updates its lifetime by the specified session_duration_minutes. If the session_duration_minutes is not specified, a Session will not be extended
Link copied to clipboard
abstract suspend fun revoke(params: B2BSessions.RevokeParams = RevokeParams()): BaseResponse
Content copied to clipboard
abstract fun revoke(params: B2BSessions.RevokeParams = RevokeParams(), callback: (BaseResponse) -> Unit)
Content copied to clipboard
Revoke a Session and immediately invalidate all its tokens.
Link copied to clipboard
Updates the current session with a sessionToken and/or sessionJwt